#pragma onces
#pragma execution_character_set("utf-8")
#include <QtWidgets>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkCookieJar>
#include <QtNetwork/QNetworkCookie>

#include <tchar.h>

#include <cpprest/http_listener.h>
#include <cpprest/http_client.h>
#include <cpprest/filestream.h>
#include <cpprest/streams.h>
#include <cpprest/asyncrt_utils.h>
using namespace utility;                    // Common utilities like string conversions
using namespace web;                        // Common features like URIs.
using namespace web::http;                  // Common HTTP functionality
using namespace web::http::client;          // HTTP client features
using namespace web::http::experimental::listener;        // HTTP client features
using namespace concurrency::streams;       // Asynchronous streams

#include <optional>
#include <memory>
#include <chrono>
#include <iomanip>
using std::optional;
using std::unique_ptr;
using std::make_unique;
using namespace std::chrono;
using std::ostringstream;
using std::put_time;
using std::string;
